#include <wx/wx.h>
#include "boardpanel.h"
#include "menugamepanel.h"

class Dam;

class GamePanel : public wxPanel
{
    public:
    GamePanel(wxFrame*frame,int id,bool isnewgame,wxString sourcefile,int boardsize,int gametype,
              wxString playername,int greedytype,int greedytype1,int greedytype2,int gamespeed);

    void StartGame();

    BoardPanel *boardpanel;
    MenuGamePanel *menugamepanel;

    //gametype pvsai or aivsai
    int gametype;

    //ukuran board
    int boardsize;
    int **arr;

    //element for player vs ai
    wxString playername;
    int greedytype;

    //element for ai vs ai
    int greedytype1;
    int greedytype2;
    int gamespeed;


    int turn;
    int typeturn;
    static const int playervsai;
    static const int aivsai;
    static const int greedybyfront;
    static const int greedybyback;
    static const int slow;
    static const int medium;
    static const int fast;
    static const int playerturn;
    static const int aiturn;
    static const int ai1turn;
    static const int ai2turn;
    static const int blackturn;
    static const int whiteturn;
};
